<template>
  <div class="box">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="did" label="医生编号" width="180">
         
      </el-table-column>
             
      <el-table-column prop="dname" label="姓名" width="180">
           
      </el-table-column>
             
      <el-table-column prop="office" label="部门" width="180"> </el-table-column
      >       
      <el-table-column prop="position" label="职位"> </el-table-column>        
             
      <el-table-column prop="position" label="擅长技能"> </el-table-column>    
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
            >编辑</el-button
          >
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
       
    </el-table>
  </div>
</template>

<script>
// import { mapState } from "@/store";
export default {
  computed: {
    // ...mapState(["userIifo"]),
  },
  methods: {},
  mounted() {
    console.log(this.scope, "**998");
    let a = this.$store.dispatch("getuserInfoActions");
    this.axios.get("/my/selectdoctor").then((res) => {
      this.tableData = res.data.results;
    });
  },
  methods: {},
  data() {
    return {
      tableData: [],
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
}
.el-table .warning-row {
  background: oldlace;
}

.el-table .success-row {
  background: #f0f9eb;
}
</style>